package com.example.jse.file;

import java.io.File;

public class WriteJmeterDat
{
    public static void main(String[] arrgs)
    {
        writeCourseAddDat();
    }

    private static void writeTaskAddDat()
    {
        File file = new File("H:/apache/apache-jmeter-5.1.1/Script/task-add.dat");
        int i = 0;
        while (i < 100)
        {
            String text = String.format("Android study %s ,Android study %s ,1,2019-04-20 21:50:00,2019-04-20 21:55:00", i, i);
            i++;
            FileUtil.writeFile(file, text);
        }
    }

    private static void writeCourseAddDat()
    {
        File file = new File("H:/apache/apache-jmeter-5.1.1/Script/course_add.dat");
        int i = 0;
        while (i < 100)
        {
            String text = String.format("Mysql排错指南 %s ,Mysql排错指南4 很薄很薄！非常非常经典 %s ", i, i);
            i++;
            FileUtil.writeFile(file, text);
        }
    }
}
